Skip to content

feat: configure Gin to run in release mode by default with debug override#91

Closed
d0ugal wants to merge 2 commits intomainfrom
feature/gin-release-mode-default
Closed

feat: configure Gin to run in release mode by default with debug override#91
d0ugal wants to merge 2 commits intomainfrom
feature/gin-release-mode-default

Conversation

@d0ugal
Copy link
Copy Markdown
Owner

@d0ugal d0ugal commented Oct 14, 2025

Changes: Add debug CLI flag to ghcr-exporter, Add debug field to ServerConfig, Update server initialization to use release mode by default, Enable debug mode only when CLI flag or config debug field is true. Usage: Run in release mode (default) with ./ghcr-exporter, Enable debug mode via CLI with ./ghcr-exporter --debug, Enable debug mode via config with server.debug: true in config.yaml. Benefits: Gin now runs in production-ready release mode by default, Debug mode only available when explicitly requested, Backward compatible with existing configurations

…ride

- Add debug CLI flag to ghcr-exporter
- Add debug field to ServerConfig
- Update server initialization to use release mode by default
- Enable debug mode only when CLI flag or config debug field is true
…erConfig

- Update server.New to accept debug parameter
- Add Debug field to ServerConfig struct
- Set Gin mode based on debug flag or config
- All tests and linting now pass
@d0ugal d0ugal closed this Oct 14, 2025
@d0ugal d0ugal deleted the feature/gin-release-mode-default branch October 14, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant